﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site/master/Main.Master" AutoEventWireup="true" CodeBehind="MemberContact.aspx.cs" Inherits="ECommerce.Web.Site.MemberContact" %>
<%@ Register src="controls/UserCenterDir.ascx" tagname="UserCenterDir" tagprefix="uc1" %>
<%@ Register src="controls/SaleRank.ascx" tagname="SaleRank" tagprefix="uc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="styles/member.css" rel="stylesheet" type="text/css" />
         <script src="../Common/Js/Calendar.js" type="text/javascript"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="main">
        <div class="mainleft">
            <uc1:UserCenterDir ID="UserCenterDir1" runat="server" />
            <uc2:SaleRank ID="SaleRank1" runat="server" />
        </div>
        <div class="mainright">
            <div class="membertit">
                您的位置：网站首页 > 会员中心
            </div>
            <div class="memberthree">
                <div class="memhead weight">
                    常用联系人信息
                </div>
                <div class="memhbody">
                    <ul>

                        <li class="title"><span class="one">姓名</span><span class="two">电话</span><span class="three">地址</span><span
                            class="four">纪念日</span><span class="five">管理</span> </li>
                        <asp:Repeater ID="rpt" runat="server" OnItemCommand="rpt_ItemCommand" 
                            onitemdatabound="rpt_ItemDataBound">
                            <ItemTemplate>                                
                                <li class="content"><span class="one"><em>
                                    <%#Eval("Name") %></em></span><span class="two"><%#Eval("Telephone") %></span><span
                                        class="three"><%#Eval("Address") %></span> <span class="four">
                                            <%#Eval("MemorialDay","{0:d}") %>[<%#((ECommerce.Model.MemberContact.MemorialType)(int)Eval("TypeID")).ToString() %>]</span><span class="five">
                                                <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%#Eval("ID") %>'
                                                    CommandName="Edit" CausesValidation="false">修改</asp:LinkButton>&nbsp;<asp:LinkButton ID="btnDelete" runat="server"
                                                        CommandName="Delete" CommandArgument='<%#Eval("ID") %>' CausesValidation="false">删除</asp:LinkButton></span>
                                </li>
                            </ItemTemplate>

                        </asp:Repeater>
                    </ul>
                </div>
                <div class="messss weightt">
                    常用联系人信息<asp:HiddenField ID="hidID" runat="server" />
                </div>
                <div class="messbody">
                    <ul>
                        <li><span class="left">姓名<em>|</em></span><span class="right"><asp:TextBox ID="Name" runat="server" CssClass="text"></asp:TextBox></span> </li>
                        <li><span class="left">电话<em>|</em></span><span class="right"><asp:TextBox 
                                ID="Telephone" runat="server" CssClass="text"></asp:TextBox></span> </li>
                        <li><span class="left">地址<em>|</em></span><span class="right"><asp:TextBox 
                                ID="Address" runat="server" CssClass="text"></asp:TextBox></span> </li>
                        <li><span class="left">纪念日<em>|</em></span><span class="right">
                            <asp:TextBox ID="MemorialDay" runat="server" CssClass="text1"></asp:TextBox>&nbsp;<asp:DropDownList ID="drpType" runat="server">
                            </asp:DropDownList> </span></li>                        
                    </ul>
                   
                    <div class="button">                        
                        <asp:ImageButton ID="btnSave" runat="server" ImageUrl="images/mbg.jpg" 
                            onclick="btnSave_Click" />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ControlToValidate="Name" Display="None" ErrorMessage="请输入姓名"></asp:RequiredFieldValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            ControlToValidate="MemorialDay" Display="None" ErrorMessage="请输入纪念日"></asp:RequiredFieldValidator>
                        <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
                            ShowMessageBox="True" ShowSummary="False" />
                            </div>
                </div>
            </div>
        </div>
        <div class="clear">
        </div>
    </div>
</asp:Content>
